# 从kafka读取数据的操作步骤
# 1.开启zookeeper
bin/zookeeper-server-start.sh config/zookeeper.properties
# 2.开启kafka
bin/kafka-server-start.sh config/server.properties
# 3.创建主题
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic sensor
# 4.创建主题的控制面板进行消息发送
./bin/kafka-console-producer.sh --broker-list 192.168.2.208:9092 --topic sensor